package com.ebraga.trackerclub.android.manager.service;

import com.ebraga.trackerclub.android.dao.api.UserDao;
import com.ebraga.trackerclub.android.dao.service.UserServiceDao;
import com.ebraga.trackerclub.android.manager.core.UserManagerImpl;
import com.ebraga.trackerclub.android.util.api.AndroidContext;
import com.ebraga.trackerclub.android.util.core.DataAccessObjectImpl;

public class UserServiceManager extends UserManagerImpl {

	public UserServiceManager(AndroidContext context)  {
		String enviroment = System.getProperty("Enviroment");
		
		if ( enviroment == null || !enviroment.equals("UNIT_TEST") ) {
			
			super.setUserDao (new UserServiceDao(new DataAccessObjectImpl(context)));
		}
	}
	
	public void setUserDao (UserDao userDao){
		super.setUserDao(userDao);
	}
}
